package com.itheima.ArrayList;

import com.itheima.ArrayList.domain.Student;

import java.util.ArrayList;
import java.util.Scanner;

public class Demo4 {
    public static void main(String[] args) {
        ArrayList<String> list=new ArrayList<>();

    }
    public static Student getStudent(){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入学生姓名");
        String name =sc.next();
        System.out.println("请输入学生年龄");
        int age =sc.nextInt();
        Student stu = new Student(name,age);
        return stu;
    }

}
